<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<script type="text/javascript" src="http://127.0.0.1/CodeIgniter/assets/development-bundle/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="http://127.0.0.1/CodeIgniter/assets/development-bundle/ui/jquery.ui.autocomplete.js"></script>
	
	<script>
	$(function() {
		var afilliates = new Array(); 
			<?php
			for ($i=0; $i<=count($names)-1; $i++)
			{
			echo "afilliates[".$i."] = '".$names[$i]."';";
			}
			?>
		$( "#search_afilliates" ).autocomplete({
			source: afilliates,
			matchContains: true,
			minChars: 2,
			autoFill: true
		});
	});
	</script>

<style type="text/css">
<!--
.Estilo1 {
	font-size: x-large;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<table width="538" border="0" align="right">
        <tr>
          <td width="602">
            <table width="100%" border="0">
              <tr>
                <td><div align="center" class="Estilo1">HOTELES AFILIADOS</div></td>
              </tr>
              <tr>
                <td width="100%"><?php $this->load->view('CRS/TravelAgency/panelHotel')?></td>
              </tr>
              <?php foreach ($Afilliates as $row)
			  { ?>
              <tr>
                <td><table width="100%" border="0">
                  <tr>
                    <td width="16%"><div>
                      <div align="left"><img src="http://127.0.0.1/CodeIgniter/img/logoHotels/<?php echo $row['logo']; ?>" /></div>
                    </div></td>
                    <td width="84%"><table width="100%" border="0">
                      <tr>
                        <td width="85%" height="21" valign="top"><div align="left"><strong>Nombre:</strong> <?php echo $row['name']; ?></div></td>
                        <td width="15%" rowspan="5" valign="top"><p><?php echo $row['id_hotel']; ?></p>
                            <p>&nbsp;</p></td>
                      </tr>
                      <tr>
                        <td height="21" valign="top"><strong>Ubicación: </strong><?php echo $row['namePlace']; ?></td>
                      </tr>
                      <tr>
                        <td height="21" valign="top"><div align="left"><strong>Descripción</strong>: <?php echo $row['description'] ?> </div></td>
                      </tr>
                      <tr>
                        <td height="24" valign="top"><strong>Dirección de Referencia</strong>: <?php echo $row['refAddress']?></td>
                      </tr>
                      <tr>
                        <td height="24" valign="top"><div align="left"><strong>Dirección:</strong> <?php echo $row['address']; ?></div></td>
                      </tr>

                    </table></td>
                  </tr>
                </table></td>
                <?php } //cierro el foreach?>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
      </td>
        </tr>
      </table>
</body>
</html>
